//
//  PublishView.h
//  talkDemo
//
//  Created by Reisen on 5/5/15.
//  Copyright (c) 2015 刘赞黄Telen. All rights reserved.
//

#import <AVFoundation/AVFoundation.h>
#import <UIKit/UIKit.h>

@interface PublishView : UIView <UIAlertViewDelegate>
{
    NSMutableArray* videoPaths;
    NSMutableArray* audioTracks;
    
    AVAssetExportSession* exportSession;
   // NSMutableArray* rowViews;
    float totalDuration;
    
    NSDate* encodeStarted;
    NSMutableArray* encodingDurations;
    float totalEncodingDurations;
    NSDate* encodeCompleted;
    NSTimer* assTimer;
    
    NSTimeInterval initialEstimate;
    BOOL estimateStabilized;
    
    NSString* videoUrl;
    NSString* thumbUrl;
    NSString* videoLocalPath;
    NSString* thumbLocalPath;
    
    NSMutableArray* segments;
    
    NSString* interviewRecordPath;
    
    int curStep;
    int totalStep;
}

@property(weak) UIViewController* superViewController;

@property(strong) IBOutlet UILabel* statusLabel;
@property(strong) IBOutlet UILabel* stepLabel;
@property(strong) IBOutlet UIProgressView* progressView;

@property (strong) NSString* outputPath;
-(id)initWithFrame:(CGRect)frame segments:(NSMutableArray*)segments recordPath:(NSString*)recordPath;
-(void)publish;
@end
